import { defineStore } from 'pinia'
import { ref } from 'vue'
export const useCounterStore = defineStore('user', () => {
	// 定义用户名的公共数据
	let username = localStorage.getItem('username')
	return { username }
},
	// 数据的持久化 本地存储
	{
		persist: true,
	},
)